#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    //水平垂直剧中
    ui->label->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
    //左上角
    ui->label_2->setAlignment(Qt::AlignLeft | Qt::AlignTop);
    //右对齐水平剧中
    ui->label_3->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
    //垂直剧中上对其
    ui->label_4->setAlignment(Qt::AlignTop | Qt::AlignHCenter);

}

Widget::~Widget()
{
    delete ui;
}

